package com.wzk.travelspringboot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wzk.travelspringboot.entity.Blog;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/15 20:23
 */
public interface BlogDAO extends BaseMapper<Blog> {

    int likeNumberDecr(long blogId);

    int likeNumberIncr(long blogId);

    List<Blog> queryBlogByUserId(long userId);

    int deleteBlogById(long id);

    int toDayBlogTotal(@Param("from") LocalDateTime from, @Param("to") LocalDateTime to);

}
